package io.renren.modules.app.controller.user.user;

import java.util.Arrays;
import java.util.Map;

import io.renren.modules.app.entity.YcUserJobStatusEntity;
import io.renren.modules.app.service.YcUserJobStatusService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


import io.renren.common.utils.PageUtils;
import io.renren.common.utils.R;



/**
 * 
 *
 * @author lym
 * @email 928185446qq.com
 * @date 2023-12-22 15:39:55
 */
@RestController
@RequestMapping("record/ycuserjobstatus")
public class YcUserJobStatusController {
    @Autowired
    private YcUserJobStatusService ycUserJobStatusService;



    /**
     * 信息
     */
    @RequestMapping("/info/{id}")
    @RequiresPermissions("record:ycuserjobstatus:info")
    public R info(@PathVariable("id") Integer id){
		YcUserJobStatusEntity ycUserJobStatus = ycUserJobStatusService.getById(id);

        return R.ok().put("ycUserJobStatus", ycUserJobStatus);
    }

    /**
     * 保存
     */
    @RequestMapping("/save")
    @RequiresPermissions("record:ycuserjobstatus:save")
    public R save(@RequestBody YcUserJobStatusEntity ycUserJobStatus){
		ycUserJobStatusService.save(ycUserJobStatus);

        return R.ok();
    }

    /**
     * 修改
     */
    @RequestMapping("/update")
    @RequiresPermissions("record:ycuserjobstatus:update")
    public R update(@RequestBody YcUserJobStatusEntity ycUserJobStatus){
		ycUserJobStatusService.updateById(ycUserJobStatus);
        return R.ok();
    }

    /**
     * 删除
     */
    @RequestMapping("/delete")
    @RequiresPermissions("record:ycuserjobstatus:delete")
    public R delete(@RequestBody Integer[] ids){
		ycUserJobStatusService.removeByIds(Arrays.asList(ids));

        return R.ok();
    }

}
